/**
 *
 * @name 全局配置 上线环境
 * @description 诸如连接后台的host地址，angular的配置项等等
 * @author yud
 *
 */

var CONFIG = {
    frontHost: 'http://www.maikeji.cn',
    API_HOST: 'https://api.metalab.cn',
    HTML5_MODE: true,
    qnuploader: {
        domain: 'http://res.maikeji.cn/',
        uptokenUrl: 'https://api.metalab.cn/qiniu/uptoken',
        maxSize: '10M'
    },
    qnuploaderImage: {
        domain: 'http://res.maikeji.cn/',
        uptokenUrl: 'https://api.metalab.cn/qiniu/uptoken',
        maxSize: '10M',
        mimeTypes: [
            {title: "Image files", extensions: "jpg,jpeg,gif,png"}
        ]
    },
    froalaOptions: {
        key: 'xB-13szD-8pG-7B-21B3zt==',
        //toolbarbuttons: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        //toolbarButtonsMD: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        //toolbarButtonsSM: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        //toolbarButtonsXS: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        imageInsertButtons: ["imageUpload"],
        language: 'zh_cn',
        imageUploadURL: 'https://api.metalab.cn/qiniu/upload',
        fileUploadURL: 'http://api.metalab.cn/qiniu/upload',
        fontFamily: {
            'Microsoft YaHei, 微软雅黑': '微软雅黑',
        },
        fontFamilyDefaultSelection: 'Microsoft YaHei',
        heightMin: 200,
        toolbarSticky: false
    },
    froalaUpdateOptions: {
        key: 'xB-13szD-8pG-7B-21B3zt==',
        //toolbarbuttons: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        //toolbarButtonsMD: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        //toolbarButtonsSM: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        //toolbarButtonsXS: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        imageInsertButtons: ["imageUpload"],
        language: 'zh_cn',
        imageUploadURL: 'https://api.metalab.cn/qiniu/upload',
        fileUploadURL: 'http://api.metalab.cn/qiniu/upload',
        fontFamily: {
            'Microsoft YaHei, 微软雅黑': '微软雅黑',
        },
        fontFamilyDefaultSelection: 'Microsoft YaHei',
        heightMin: 300,
        toolbarSticky: false
    }
};

